//列表全选
function checkAll() {
  for (var i = 0; i < document.getElementsByName("allid").length; i++) {
  	document.getElementsByName("allid")[i].checked = document.getElementById("select_all").checked;
  }
}

//删除提示
function p_del() {
	var msg = "您真的确定要删除吗？\n\n请确认！";
	if (confirm(msg)==true){
		return true;
	}else{
		return false;
	}
}

//审批提示
function p_approve() {
	var msg = "您真的要批准此条修改信息吗？\n\n请确认！";
	if (confirm(msg)==true){
		return true;
	}else{
		return false;
	}
}


//打开关闭
function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){
	var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
	var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
	var openTip = oOpenTip || "";
	var shutTip = oShutTip || "";
	if(targetObj.style.display!="none"){
		if(shutAble) return;
		targetObj.style.display="none";
		if(openTip && shutTip){
			sourceObj.innerHTML = shutTip; 
		}
	} else {
	targetObj.style.display="block";
	if(openTip && shutTip){
		sourceObj.innerHTML = openTip; 
	}
	}
}

